package com.bosssoft.user.permission.center.serve.pojo.dto;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel("角色模块分配用户请求实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleUserDTO {

    @ApiModelProperty("角色id")
    @JsonSerialize(using= ToStringSerializer.class)
    @NotNull
    private  Long roleId;

    @ApiModelProperty("当前页面全部用户ids")
    @JsonSerialize(using= ToStringSerializer.class)
    private List<Long> currentPageUserIds;

    @ApiModelProperty("被选中的用户ids")
    @JsonSerialize(using= ToStringSerializer.class)
    private List<Long> currentPageSelectedIds;

    @ApiModelProperty("租户id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long tenantId;


}
